home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-11-19 | 2.2 KB | 56 lines | [TEXT/MPS ] |
- /*
- File: ShowINITLibrary.exp
-
- Contains: Library and FunctionSet declarations for ShowINITLibrary.
-
- Copyright: © 1993 by Apple Computer, Inc., all rights reserved.
-
- */
-
-
- #include <LibraryManager.h>
- #include "ShowINITLibrary.h"
-
-
- /*————————————————————————————————————————————————————————————————————————————————————
- Library declarations defines the ID of the shared library and the version.\
- initproc(optional) "C" routine to be called immediately after loading
- cleanupProc(optional) "C" routine to be called after library is unloaded
- flags(optional)
- noSegUnload The segments of the shared library cannot be unloaded.
- preload All segments of the shared library should be loaded at
- library load time.
- id(required) Defines the ID of the library
- version(required) Defines the version of the library.
- memory(optional) The default pool memory allocation will be the
- client from client pool.
- local from local pool
-
- Since we set the preload flag, the library will be preloaded at boot time. This
- isn't quite enough to make sure our init works. We also need to set the stayLoaded
- flag so our library doesn't immediately unload after being loaded. This is the
- same as calling LoadLibraries(false,true) from the InitProc. We call
- UnloadLibraries to get the library to unload when the ShowInit routine is
- called. Your library may also want to set the forceDeps flags to make sure that
- all the code segmetns of the libraries that it depends on also get loaded.
- We don't set it here because our library doesn't depend on any other libraries.
- ————————————————————————————————————————————————————————————————————————————————————*/
-
- Library {
- id = kINITLibID;
- version = 1.1;
- memory = client;
- flags = preload, stayLoaded;
- };
-
- /*————————————————————————————————————————————————————————————————————————————————————
- Declarations of functions we want to export. If functions where pascal function,
- we need to put the pascal keyword in front of the function name.
- ————————————————————————————————————————————————————————————————————————————————————*/
-
- FunctionSet ShowINIT {
- id = kShowInitFunctionSet;
- version = 1.1;
- exports = ShowInit;
- };
-